import { Controller } from 'egg';
export default class TestController extends Controller {
    
    async first(){
        const {ctx,app}=this;
        try {
            console.log("s")
            await app.redis.set("test01",'hello');
            let result=await app.redis.get("test01");
            return ctx.body=result;
        } catch (error) {
        }
        ctx.body=ctx.helper.error_result("查询异常");
    }
}

